﻿namespace MemoryTest_Communications.PropertySearch.Resources
{
    using System.Xml.Serialization;
    using Newtonsoft.Json;

    [JsonObject(MemberSerialization.OptIn)]
    [XmlTypeAttribute(TypeName = "data")]
    public sealed class Data
    {
        public Data() { }

        [JsonPropertyAttribute("avg_price")]
        [XmlAttribute(AttributeName = "avg_price", Type = typeof(string))]
        public string AveragePrice { get; set; }

        [JsonProperty("datapoints")]
        [XmlAttribute(AttributeName = "datapoints", Type = typeof(int))]
        public int DataPoints { get; set; }

        [JsonProperty("month")]
        [XmlAttribute(AttributeName = "month", Type = typeof(string))]
        public string Month { get; set; }
    }

}
